package com.ak.auth.properties;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import lombok.Data;

/**
 * @author Vean
 */
@Data
@SpringBootConfiguration
@PropertySource(value = {"classpath:ak-auth.properties"})
@ConfigurationProperties(prefix = "ak.auth")
public class AuthProperties {

	/**
     * 免认证访问路径
     */
    private String anonUrl;
    /**
     * 验证码配置
     */
    private ValidateCodeProperties code = new ValidateCodeProperties();
    /**
     * JWT加签密钥
     */
    private String jwtAccessKey;
    /**
     * 是否使用 JWT令牌
     */
    private Boolean enableJwt;
    /**
     * 社交登录所使用的 Client
     */
    private String socialLoginClientId;

    /**
     * Token 刷新时间
     */
    private int refreshTokenSeconds;
    /**
     * Token 失效时间
     */
    private int accessTokenSeconds;
}
